import { request } from '@/utils/http';

const LOGIN = '/login';
const LOGIN_OUT = '/logout';
const REFRESH_TOKEN = '/refresh/token';

/**
 * 登录
 * @param params
 */
export function login(params) {
    return request.Post('/adminapi/user/login', params);
}

/**
 * 登出
 */
export function logout() {
    return request.Post('/adminapi/user/logout');
}

/**
 * 获取用户信息
 * @returns
 */
export function getUserInfo() {
    return request.Post('/adminapi/user/index');
}
